<?php echo $this->validation->error_string; ?>
<?php echo form_open($this->curl .'/create/', 'id="create_form"')?>
<br />
<table class="nostyle forma" width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<th style="width: 130px;"><?php $this->load->view('_elements/obligatory.php'); ?><?php echo $this->email_model->fields['subject']?></th>
		<td><div class="input_300"><?php echo form_input('subject', $this->validation->subject, 'class="input-text"')?></div></td>
	</tr>
	<tr>
		<th><?php $this->load->view('_elements/obligatory');?><?php echo $this->email_model->fields['name']?></th>
		<td><div class="input_300"><?php echo form_input('name', $this->validation->name, 'class="input-text"')?></div></td>
	</tr>
	<tr>
		<th><?php $this->load->view('_elements/obligatory');?><?php echo $this->email_model->fields['mailtype']?></th>
		<td><div class="input_300"><?php echo form_dropdown('mailtype', $this->email_model->mailtypes, array($this->validation->mailtype), null)?></div></td>
	</tr>
	<tr>
		<th><?php $this->load->view('_elements/obligatory.php'); ?><?php echo $this->email_model->fields['text']?></th>
		<td><textarea name="text" id="text"><?php echo $this->validation->text ?></textarea></td>
	</tr>
	<tr>
		<th></th>
		<td>
			<strong><?php echo T_('Use the placeholders'); ?>:</strong> {user_name}, {user_email}, {user_password}, {site_name}, {site_url}, {activation_link}
		</td>
	</tr>
	<tr>
		<th></th>
		<td>
			<input name="edit" type="submit" class="btn btn_save" id="submit" value="<?php echo T_('Submit')?>" />
			<input name="reset"  type="reset"  class="btn btn_clear" id="reset" value="<?php echo T_('Reset')?>" onclick="$('#create_form input[type=text]').val('');" />		
		</td>
	</tr>
	</table>

<?php echo form_close()?>